﻿package game.managers
{
	import flash.display.Stage;
	/**
	 * 舞台代理类
	 * @author xiezhicheng
	 */
	public class StageProxy
	{
		public static var stage:Stage;
		public static var _isRegisted:Boolean;
		public static var _startHeight:Number;
		public static var _startWidth:Number;
		private static var _h:Number = 600;
		private static var _w:Number = 950;
		
		public static var originelHeight:Number = 600;
		public static var originelWidth:Number = 950;
		
		public static function registed(s:Stage):void
		{
			_isRegisted=true;
			stage=s;
			
			_startHeight=s.stageHeight;
			_startWidth=s.stageWidth;
			
		}
//		public static function get startHeight():Number
//		{
//			return _startHeight;
//		}
//		public static function get startWidth():Number
//		{
//			return _startWidth;
//		}
		public static function get height():Number
		{
			return _h;
		}
		public static function set height(value:Number):void
		{
			_h = value;
		}
		public static function get width():Number
		{
			return _w;
		}
		public static function set width(value:Number):void
		{
			_w = value;
		}
		public static function stageHeight():Number
		{
			return  stage.stageHeight;
		}
		public static function stageWidth():Number
		{
			return stage.stageWidth;
		}
	}
	
}
